<?php
$goodsid = empty($_GET['goodsid']) ? 0 : intval($_GET['goodsid']);
$type = empty($_GET['type']) ? '' : trim($_GET['type']);
	
// 商品评价
$oComment = new Comment();
$comment_list = $oComment->get_goods_comments($goodsid, $type, $__page, $__pagesize);
if($comment_list['list']){
	foreach ($comment_list['list'] as $key => $row){
		$row['stars'] = $row['score'] * 150 / 5;
		$comment_list['list'][$key] = $row;
	}
	$vars['comment_list'] = $comment_list['list'];
	$vars['pagelist'] = $comment_list['pagelist'];
}
?>